/**
 * @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
 * For licensing, see https://ckeditor.com/legal/ckeditor-oss-license
 */

CKEDITOR.editorConfig = function( config ) {
	// Define changes to default configuration here. For example:
	// config.language = 'fr';
	// config.uiColor = '#AADC6E';


    config.language = 'zh-cn';
    config.uiColor = '#f7f5f4';
    config.width = '99.7%';

    var ckfinderPath = "/ckfinder"; //ckfinder路径

    // 图片上传配置  
    // config.filebrowserUploadUrl = '/back/article/uploadFile';
    // config.filebrowserImageUploadUrl = '/back/article/uploadFile';
    // config.filebrowserFlashUploadUrl = '/back/article/uploadFile';

    config.filebrowserImageBrowseUrl = ckfinderPath + '/ckfinder.html?type=Images';
    config.filebrowserFlashBrowseUrl = ckfinderPath + '/ckfinder.html?type=Flash';
    config.filebrowserUploadUrl = ckfinderPath + '/core/connector/java/connector.java?command=QuickUpload&type=Files';
    config.filebrowserImageUploadUrl = ckfinderPath + '/core/connector/java/connector.java?command=QuickUpload&type=Images';
    config.filebrowserFlashUploadUrl = ckfinderPath + '/core/connector/java/connector.java?command=QuickUpload&type=Flash';
    // config.filebrowserWindowWidth = '1000';
    // config.filebrowserWindowHeight = '700';

    // 图片浏览配置  
    // config.filebrowserImageBrowseUrl = '/back/article/uploadFile';
};
